cmake_minimum_required(VERSION 3.10)

# 线程池库
add_library(common_thread_lib
    thread_pool.cpp
)

# 添加头文件搜索路径
target_include_directories(common_thread_lib PUBLIC
    ${CMAKE_SOURCE_DIR}/include
)

# 链接线程库
target_link_libraries(common_thread_lib PUBLIC
    pthread
) 